package com.yeswater.multithread.chapter1.test1_8;

/**
 * author : yeswater
 * date : 2023/10/18
 *
 * Thread.dumpStack(); 将当前线程的堆栈信息输出到标准错误流
 */

public class Test1 {

    public static void main(String[] args) {
        Test1 test1 = new Test1();
        test1.a();
    }

    public void a() {
        b();
    }

    public void b() {
        c();
    }

    public void c() {
        d();
    }

    public void d() {
        e();
    }

    public void e() {
        int age = 0;
        age = 100;
        if (age == 100) {
            Thread.dumpStack();
        }
    }
}
